import Vue from 'vue'
import Home from './Home.vue'
import App from './App2'
import VueResource from 'vue-router'
import VueResource from 'vue-resource'
import First from './First.vue'
import Explorer from './Explorer.vue'
import Cart from './Cart.vue'
import Me from './Me.vue'

Vue.use(VueRouter)
Vue.use(VueResource)

const router = new VueRouter({
  mode:'history',
  base:__dirname,
  routes:[
    {path:'./first',compent:First},
    {path:'./exploeer',compent:Explorer},
    {path:'./cart',compent:Cart},
    {path:'./me',compent:Me},

  ]
})

new Vue({
  el:'#app',
  router,
  'render:h =>h(App)'
})

